<!-- <style src="./index.scss" lang="scss" scoped rel="stylesheet/scss"></style> -->
<template src="./index.html"></template>
<script>
    import html2canvas from "html2canvas";
    export default {
        computed: {},
        data() {
            return {
                boxVisible:false,
                htmlDom:null,
            };
        },
        methods: {
           
            // 成功回调
            onSuccess() {},
            // 取消回调
            onCancel() {},
            // 失败回调
            onError() {},
            // 关闭窗口
            editBoxClose() {
                this.boxVisible = false;
            },
            // 取消
            editBoxCancel() {
                this.editBoxClose();
            },

            show(e, item) {
                console.log(e, item);
            }
        },
        watch: {},
        mounted() {
            this.boxVisible = true;
            
            setTimeout(()=>{
                console.error("htmlDom",this.htmlDom)
            console.error("fffff",this.$refs.fffff)
                html2canvas(this.$refs.fffff).then(function(canvas) {
                // this.onSuccess(canvas.toDataURL());
                console.error("canvas",canvas.toDataURL())
            });
            },1000)
            setTimeout(()=>{
                html2canvas(this.htmlDom).then(function(canvas) {
                // this.onSuccess(canvas.toDataURL());
            });
            },2000)
        },
        beforeCreate() {},
    };
</script>